package com.wangyb.wework.wxApi;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @Author: wangyb
 * @Date: 2021/6/30 11:47 下午
 */
@Data
public class BaseWxResp implements WxRequest{
	@JSONField
	private int errcode;
	@JSONField
	private String errmsg;

	private String jsonString;

	public String get(String key){
		JSONObject json = JSONObject.parseObject(jsonString);
		return json.getString(key);
	}

	public String reqUrl() {
		return null;
	}
}
